export const map = {
  1: {
    statusTxt: '待入库',
    buttonTxt: '待拣货-入库单明细',
    type: 'primary',
    0: {
      text: '待拣货',
      buttonTxt: '待拣货-入库单明细',
      type: 'primary',
    },
    1: {
      text: '拣货中',
      buttonTxt: '拣货中-入库单明细',
      type: 'warning',
    },
    2: {
      text: '拣货完成',
      buttonTxt: '拣货完成-入库单明细',
      type: 'success',
    },
  },
  3: {
    statusTxt: '强制终止',
    type: 'danger',
    0: {
      buttonTxt: '强制终止-入库单明细',
      type: 'danger',
    },
  },
  4: {
    statusTxt: '入库中',
    type: 'warning',
    0: {
      text: '待拣货',
      buttonTxt: '待拣货-入库单明细',
      type: 'primary',
    },
    1: {
      text: '拣货中',
      buttonTxt: '拣货中-入库单明细',
      type: 'warning',
    },
    2: {
      text: '拣货完成',
      buttonTxt: '拣货完成-入库单明细',
      type: 'success',
    },
  },
  2: {
    statusTxt: '入库完成',
    buttonTxt: '拣货完成-入库单明细',
    type: 'success',
    1: {
      text: '拣货完成',
      buttonTxt: '拣货完成-入库单明细',
      type: 'success',
    },
    2: {
      text: '拣货完成',
      buttonTxt: '拣货完成-入库单明细',
      type: 'success',
    },
  },
}

export const deliveryTypeMap = {
  1: '人工',
  2: 'AGV',
}

export const outStatusMap = {
  0: {
    text: '待审核',
    color: 'primary',
  },
  6: {
    text: '审核驳回',
    color: 'danger',
  },
  5: {
    text: '待提交',
    color: 'success',
  },
  1: {
    text: '审核通过',
    color: 'success',
  },
  4: {
    text: '出库中',
    color: 'warning',
  },
  2: {
    text: '已完成',
    color: 'success',
  },
  3: {
    text: '强制终止',
    color: 'danger',
  },
}

export const outStyle = {
  0: '自定义',
  1: '整出',
}

export const outTaskStatusMap = {
  0: {
    text: '未执行',
    color: '#96a6b4',
  },
  1: {
    text: '执行中',
    color: '#f28a00',
  },
  2: {
    text: '已完成',
    color: '#00d97e',
  },
}

export const outTaskCodeStatus = {
  0: {
    text: '未入库',
    color: 'primary',
  },
  1: {
    text: '已入库',
    color: 'primary',
  },
  2: {
    text: '入库中',
    color: 'warning',
  },
  3: {
    text: '出库中',
    color: 'warning',
  },
  4: {
    text: '已出库',
    color: 'success',
  },
  5: {
    text: '确认入库',
    color: 'success',
  },
  6: {
    text: '已拣货',
    color: 'success',
  },
}

export const barCodeStatusMap = outTaskCodeStatus
